package socketmessage.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import socketmessage.entity.Socketmessage;
import org.apache.ibatis.annotations.Mapper;
import wxusersocket.entity.Wxusersocket;

import java.util.List;

@Mapper
public interface SocketmessageMapper extends BaseMapper<Socketmessage>{
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table socketmessage
     *
     * @mbg.generated Tue Mar 22 13:14:56 UTC 2022
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table socketmessage
     *
     * @mbg.generated Tue Mar 22 13:14:56 UTC 2022
     */
    int insert(Socketmessage record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table socketmessage
     *
     * @mbg.generated Tue Mar 22 13:14:56 UTC 2022
     */
    int insertSelective(Socketmessage record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table socketmessage
     *
     * @mbg.generated Tue Mar 22 13:14:56 UTC 2022
     */
    Socketmessage selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table socketmessage
     *
     * @mbg.generated Tue Mar 22 13:14:56 UTC 2022
     */
    int updateByPrimaryKeySelective(Socketmessage record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table socketmessage
     *
     * @mbg.generated Tue Mar 22 13:14:56 UTC 2022
     */
    int updateByPrimaryKey(Socketmessage record);

    List<Socketmessage> selcetpid(Page<Socketmessage> page,String usersocketid);

    int deleteByopenid(String usermessageid);

}
